package main.components;

import javax.swing.*;
import java.awt.*;

/**
 * Created by a_lyulyasov on 06.12.2014.
 */
public class JGlyphButton extends JButton {

    public JGlyphButton(String iconPath) {

        if (!iconPath.equals("")) super.setIcon(new ImageIcon(getClass().getResource(iconPath)));
        super.setMaximumSize(new Dimension(50, 50));
        super.setMinimumSize(new Dimension(50, 50));
        super.setPreferredSize(new Dimension(50, 50));

    }


}
